This feature only works with Java 1.5 or higher. Both the libraries for GroovySoap and GroovyWS are checked in to the code base. The appropriate version of groovy-all.jar needs to be used to access the the one style or the other.
The following examples come from the groovy soap website as well as the groovy in action book. They can be used to test a simple and a complex return type respectively.
println("--- Testing web service call 1---")
def proxy = new groovy.net.soap.SoapClient("http://www.webservicex.net/CurrencyConvertor.asmx?WSDL")
def rate = proxy.ConversionRate('GBP', 'USD')
println(rate)
println("--- Testing web service call 2---")
def proxy = new groovy.net.soap.SoapClient("http://www.webservicex.net/WeatherForecast.asmx?WSDL")
def result = proxy.GetWeatherByPlaceName("Seattle")
println(result.latitude)
println(result.details.waetherData[0].weatherImage)